<!DOCTYPE html>
<style>
* {
    height: 4px;
}
span {
    float: left;
    box-shadow: 1px 1px 1e8px red;
}
div {
    margin-top: 1e8px;
}
</style>
<div></div><span></span>
<script>
    // Test for https://crbug.com/604331: this test passes if it does not crash.
    document.documentElement.appendChild(document.createTextNode('PASS'));

    if (window.testRunner)
        testRunner.dumpAsText();
</script>
